/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bgu.sonar.util.async;

/**
 *
 * @author bennyl
 */
public abstract class TerminationCallback implements Callback {

    public abstract void onTrminated(boolean success);

    @Override
    public void onFailed(Exception ex, boolean interrupted) {
        onTrminated(false);
    }

    @Override
    public void onSuccess(Object res) {
        onTrminated(true);
    }
}
